<%= error_messages_for 'person' %>

<!--[form:person]-->
<p><label for="person_name">Name</label><br/>
<%= text_field 'person', 'name'  %></p>

<p><label for="person_mobile">Mobile</label><br/>
<%= text_field 'person', 'mobile'  %></p>

<p><label for="person_phone">Phone</label><br/>
<%= text_field 'person', 'phone'  %></p>

<p><label for="person_address">Address</label><br/>
<%= text_field 'person', 'address'  %></p>

<p><label for="person_postcode">Postcode</label><br/>
<%= text_field 'person', 'postcode'  %></p>

<p><label for="company_id">Company</label><br/>
  <%= options = [["select a company", ""]] + @companies.map {|x| x.id }
      select('person', 'company_id', options)
  %>
</p>
<!--[eoform:person]-->

